<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8">
    <title>Title</title>
    
    <style>
      .card {
        border: 1px gray solid;
        border-radius: 10px;
        padding: 15px;
      }
      
      .card-title {
        font-size: 15px;
        font-weight: bold;
        margin: 10px;
      }
      
      .card-body > div {
        color: darkgray;
        background: pink;
        margin: 10px;
        padding: 30px 40px;
      }
      
      .card-body {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(2, 150px);
      }
    </style>
  </head>
  <body style="display: grid;grid-template-columns: repeat(2,1fr);gap: 10px">
    <!--place-items属性用于设置每个网格项内部元素的水平位置和垂直位置，该属性是justity-items和align-items的结合体，其属性值为开始位置start、结束位置end、中间位置center、拉伸占满stretch-->
    <div class="card">
      <div class="card-title">开始位置start</div>
      <div class="card-body" style="place-items: start start">
        <div>1</div>
        <div>2</div>
        <div>3</div>
        <div>4</div>
        <div>5</div>
        <div>6</div>
      </div>
    </div>
    
    <div class="card">
      <div class="card-title">结束位置end</div>
      <div class="card-body" style="place-items: end end">
        <div>1</div>
        <div>2</div>
        <div>3</div>
        <div>4</div>
        <div>5</div>
        <div>6</div>
      </div>
    </div>
    
    <div class="card">
      <div class="card-title">中间位置center</div>
      <div class="card-body" style="place-items: center center">
        <div>1</div>
        <div>2</div>
        <div>3</div>
        <div>4</div>
        <div>5</div>
        <div>6</div>
      </div>
    </div>
    
    <div class="card">
      <div class="card-title">拉伸占满stretch</div>
      <div class="card-body" style="place-items: stretch stretch">
        <div>1</div>
        <div>2</div>
        <div>3</div>
        <div>4</div>
        <div>5</div>
        <div>6</div>
      </div>
    </div>
  </body>
</html>